package gui.commands;

import model.entity.Item;
import model.management.ItemManager;
import common.Result;

public class AddItemCommand implements Command
{
  private final Item item;

  public AddItemCommand(Item item)
  {
    this.item = item;
  }

  @Override
  public Result reverse()
  {
    return ItemManager.removeItem(item);
  }

  @Override
  public Result execute()
  {
    return ItemManager.addItem(item);
  }
}
